#include<stdio.h>

int main() {
    char stc[1000] = {0};
    int i = 0;

    do {
        stc[i] = getchar();
        i++;
    } while (stc[i - 1] != '\n' && i < 1000);

    stc[i - 1] = '\0';  // 在最后位置加上字符串结束符

    printf("Reversal is: ");
    for (i = i - 2; i >= 0; i--) {
        printf("%c", stc[i]);
    }
    printf("\n");

    return 0;
}
